package com.bdqn.controller;

import com.bdqn.service.RoleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version 2024-10-28
 * @Author:T369曹任柱
 */
@Controller
@RequestMapping(value = "/right")
public class RightController {
    @Resource
    private RoleService roleService;
    @RequestMapping(value = "/reload")
    public String reload(){
        roleService.reloadFilterChainDefinitions();
        return "redirect:/main";
    }
}
